<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<br />
<table width="700" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th scope="col">Shop</th>
    <th scope="col">Reason/Status</th>
    <th scope="col">Staff</th>
    <th scope="col">Time</th>
    <th scope="col">Comment</th>
    
  </tr>
<?php foreach($this->arrRes as $k => $v){?>  
  <tr>
    <td><?php echo $v['shop_code'];?></td>
    <td><?php 
			  switch($v['id_reason']){
				  case(0):{echo "Pick Up By";break;}
				  case(-1):{echo "Job Created By";break;}
				  case(-2):{echo "Warranty Open By";break;}
				  }
	?></td>
    <td><?php echo ucwords($v['nick_name']);?></td>
    <td><?php echo $v['time_record'];?></td>
    <td><?php echo $v['comment']?></td>
    
  </tr>
<?php }?>  
</table>
</body>
</html>
